package cn.exrick.xboot.modules.graphics.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author njp
 */
@Data
@Entity
@Table(name = "t_graphics_page")
@TableName("t_graphics_page")
@ApiModel(value = "首页画布表")
@EqualsAndHashCode(callSuper = true)
public class GraphicsPage extends XbootBaseEntity {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "首页界面标题")
    private String title;
    @ApiModelProperty(value = "机构id")
    private String orgId;
    @ApiModelProperty(value = "排序值")
    private Integer sortOrder=0;
    @ApiModelProperty(value = "列")
    private Integer cols=0;
    @ApiModelProperty(value = "行")
    private Integer rows=0;
    @Transient
    @TableField(exist=false)
    @ApiModelProperty(value = "画布容器中间表数据（主要获取容器与界面对应关系）")
    private List<GraphicsContainer> layoutDetail;
    @ApiModelProperty(value = "界面的使用状态（0：未被使用1：代表被使用）")
    private Integer status;
}